﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AnesSystem.ViewModels.Operation.CQ.CQFY;

namespace AnesSystem.ViewModels.Operation.SC.CDTY
{
    public class AnesRecordItemCtrlViewModel : AnesSystem.ViewModels.AnesRecordItemCtrlViewModel
    {
        #region Variables

        #endregion


        #region Constructor

        public AnesRecordItemCtrlViewModel(int curPage):base(curPage)
        {
            CurPage = curPage;
            InitData();
        }

        #endregion


        #region Properties

        #endregion


        #region 依赖属性


        #endregion


        #region Event


        #endregion


        #region PrivateMethods
        /// <summary>
        /// 创建多页麻醉单ViewModel模块(不能使用单例)
        /// </summary>
        protected override void CreataViewModels()
        {
            AnesRecordBaseInfoCtrlViewModel = new AnesRecordBaseInfoCtrlViewModel(CurPage);
            _realTimeSignShowCtrlViewModel = new RealTimeSignShowCtrlViewModel(CurPage);
            _realTimeItemCtrlViewModel = new RealTimeItemCtrlViewModel(CurPage);
            _anesRecordTimeCtrlViewModel = new AnesRecordTimeCtrlViewModel(CurPage);
            _anesMedicineCtrlViewModel = new AnesMedicineCtrlViewModel(CurPage);
            _anesInfusionCtrlViewModel = new AnesInfusionCtrlViewModel(CurPage);
            _anesEventAndMedicineCtrlViewModel = new AnesSystem.ViewModels.Operation.CQ.CQFY.AnesEventAndMedicineCtrlViewModel(CurPage);
            _operStatusItemCtrlViewModel = new OperStatusItemCtrlViewModel(CurPage);
        }

        #endregion

        //多页面非单例控件刷新需指定页数
        #region Public/ProtectedMethods

        public override void Refresh()
        {
            _anesRecordTimeCtrlViewModel.Refresh();
            _realTimeSignShowCtrlViewModel.Refresh();
            _realTimeItemCtrlViewModel.Refresh();
            _anesEventAndMedicineCtrlViewModel.Refresh();
            _anesMedicineCtrlViewModel.Refresh();
            _anesInfusionCtrlViewModel.Refresh();
            _operStatusItemCtrlViewModel.Refresh();

        }
        public override void InitData()
        {
            CreataViewModels();
        }

        #endregion

        #region EventHandlers


        #endregion
    }
}
